From d842962e27b10b6831c2421fa257e3fd58a85b18 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 8 Sep 2009 23:05:44 +0000 Subject: 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 --- test/CodeGen/X86/test-shrink.ll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/CodeGen/X86/test-shrink.ll') 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 -- cgit v1.1