diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-08 23:05:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-08 23:05:44 +0000 |
commit | d842962e27b10b6831c2421fa257e3fd58a85b18 (patch) | |
tree | f21109ac541738051fdd3e258c078bafa09d40c6 /test/CodeGen/X86/test-shrink.ll | |
parent | 9c7a988e3b014ed56e6765f9ceb68d80d56414c0 (diff) | |
download | external_llvm-d842962e27b10b6831c2421fa257e3fd58a85b18.zip external_llvm-d842962e27b10b6831c2421fa257e3fd58a85b18.tar.gz external_llvm-d842962e27b10b6831c2421fa257e3fd58a85b18.tar.bz2 |
change selectiondag to add the sign extended versions of immediate operands
to instructions instead of zero extended ones. This makes the asmprinter
print signed values more consistently. This apparently only really affects
the X86 backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/test-shrink.ll')
-rw-r--r-- | test/CodeGen/X86/test-shrink.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGen/X86/test-shrink.ll b/test/CodeGen/X86/test-shrink.ll index bbf727a..ecfe38b 100644 --- a/test/CodeGen/X86/test-shrink.ll +++ b/test/CodeGen/X86/test-shrink.ll @@ -104,10 +104,10 @@ no: ret void } ; CHECK-64: g64x16: -; CHECK-64: testw $32896, %di +; CHECK-64: testw $-32640, %di ; CHECK-64: ret ; CHECK-32: g64x16: -; CHECK-32: testw $32896, %ax +; CHECK-32: testw $-32640, %ax ; CHECK-32: ret define void @g64x16(i64 inreg %x) nounwind { %t = and i64 %x, 32896 @@ -121,10 +121,10 @@ no: ret void } ; CHECK-64: g32x16: -; CHECK-64: testw $32896, %di +; CHECK-64: testw $-32640, %di ; CHECK-64: ret ; CHECK-32: g32x16: -; CHECK-32: testw $32896, %ax +; CHECK-32: testw $-32640, %ax ; CHECK-32: ret define void @g32x16(i32 inreg %x) nounwind { %t = and i32 %x, 32896 |