aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/narrow_op-2.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-08 23:05:44 +0000
committerChris Lattner <sabre@nondot.org>2009-09-08 23:05:44 +0000
commitd842962e27b10b6831c2421fa257e3fd58a85b18 (patch)
treef21109ac541738051fdd3e258c078bafa09d40c6 /test/CodeGen/X86/narrow_op-2.ll
parent9c7a988e3b014ed56e6765f9ceb68d80d56414c0 (diff)
downloadexternal_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/narrow_op-2.ll')
-rw-r--r--test/CodeGen/X86/narrow_op-2.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/CodeGen/X86/narrow_op-2.ll b/test/CodeGen/X86/narrow_op-2.ll
index b441794..176dcd0 100644
--- a/test/CodeGen/X86/narrow_op-2.ll
+++ b/test/CodeGen/X86/narrow_op-2.ll
@@ -1,12 +1,14 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep andb | count 2
-; RUN: llvm-as < %s | llc -march=x86-64 | grep andb | grep 254
-; RUN: llvm-as < %s | llc -march=x86-64 | grep andb | grep 253
+; RUN: llvm-as < %s | llc -march=x86-64 | FileCheck %s
%struct.bf = type { i64, i16, i16, i32 }
@bfi = external global %struct.bf*
define void @t1() nounwind ssp {
entry:
+
+; CHECK: andb $-2, 10(
+; CHECK: andb $-3, 10(
+
%0 = load %struct.bf** @bfi, align 8
%1 = getelementptr %struct.bf* %0, i64 0, i32 1
%2 = bitcast i16* %1 to i32*