diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-02 05:53:06 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-02 05:53:06 +0000 |
commit | 8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df (patch) | |
tree | e29ccb6d0449ed9b53cd674f71ba931e7d31590e /test/CodeGen/X86 | |
parent | a14c3f11accf900fbde1af574a62258d4b246a2e (diff) | |
download | external_llvm-8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df.zip external_llvm-8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df.tar.gz external_llvm-8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df.tar.bz2 |
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')
-rw-r--r-- | test/CodeGen/X86/2006-05-02-InstrSched1.ll | 6 |
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 4711897..631e416 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) |