diff options
Diffstat (limited to 'test/CodeGen/X86/sub.ll')
-rw-r--r-- | test/CodeGen/X86/sub.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sub.ll b/test/CodeGen/X86/sub.ll new file mode 100644 index 0000000..2a4d2d6 --- /dev/null +++ b/test/CodeGen/X86/sub.ll @@ -0,0 +1,11 @@ +; RUN: llc -march=x86 < sub.ll | FileCheck %s + +define i32 @test1(i32 %x) { + %xor = xor i32 %x, 31 + %sub = sub i32 32, %xor + ret i32 %sub +; CHECK: test1: +; CHECK: xorl $-32 +; CHECK-NEXT: addl $33 +; CHECK-NEXT: ret +} |