projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
41e01fbdae8b38524e98c4aeda06a1f4335d8cc8
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
sub-xor.ll
1
; RUN: opt -instcombine -S < %s | FileCheck %s
2
3
define i32 @test1(i32 %x) nounwind {
4
%and = and i32 %x, 31
5
%sub = sub i32 63, %and
6
ret i32 %sub
7
8
; CHECK: @test1
9
; CHECK-NEXT: and i32 %x, 31
10
; CHECK-NEXT: xor i32 %and, 63
11
; CHECK-NEXT: ret
12
}