summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2006-05-02-InstrSched1.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-02 05:53:06 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-02 05:53:06 +0000
commit8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df (patch)
treee29ccb6d0449ed9b53cd674f71ba931e7d31590e /test/CodeGen/X86/2006-05-02-InstrSched1.ll
parenta14c3f11accf900fbde1af574a62258d4b246a2e (diff)
downloadllvm-8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df.tar.gz
llvm-8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df.tar.bz2
llvm-8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df.tar.xz
For PR1070:
Revert previous patch now that llvm-upgrade can handle collapsed type plane conversion properly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2006-05-02-InstrSched1.ll')
-rw-r--r--test/CodeGen/X86/2006-05-02-InstrSched1.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGen/X86/2006-05-02-InstrSched1.ll b/test/CodeGen/X86/2006-05-02-InstrSched1.ll
index 47118970c3..631e416836 100644
--- a/test/CodeGen/X86/2006-05-02-InstrSched1.ll
+++ b/test/CodeGen/X86/2006-05-02-InstrSched1.ll
@@ -11,8 +11,10 @@ int %compare(sbyte* %a, sbyte* %b) {
%tmp4 = getelementptr ubyte* %tmp, uint %tmp3 ; <ubyte*> [#uses=1]
%tmp7 = load uint* %tmp ; <uint> [#uses=1]
%tmp8 = getelementptr ubyte* %tmp, uint %tmp7 ; <ubyte*> [#uses=1]
- %result = tail call int %memcmp( sbyte* %tmp8, sbyte* %tmp4, uint %tmp ) ; <int> [#uses=1]
- ret int %result
+ %tmp8 = cast ubyte* %tmp8 to sbyte* ; <sbyte*> [#uses=1]
+ %tmp4 = cast ubyte* %tmp4 to sbyte* ; <sbyte*> [#uses=1]
+ %tmp = tail call int %memcmp( sbyte* %tmp8, sbyte* %tmp4, uint %tmp ) ; <int> [#uses=1]
+ ret int %tmp
}
declare int %memcmp(sbyte*, sbyte*, uint)