summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-05-09 07:20:24 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-05-09 07:20:24 +0000
commit506b94f8cd00083d89aa2415560ecdaabd539530 (patch)
tree5edbe6f632c0fbc7738825212dab6db36d7b3ef9 /test
parentb63b0679251834601633ed91b5567801a89d77fe (diff)
downloadllvm-506b94f8cd00083d89aa2415560ecdaabd539530.tar.gz
llvm-506b94f8cd00083d89aa2415560ecdaabd539530.tar.bz2
llvm-506b94f8cd00083d89aa2415560ecdaabd539530.tar.xz
Another instruction scheduling test case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/2006-05-08-InstrSched.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2006-05-08-InstrSched.ll b/test/CodeGen/X86/2006-05-08-InstrSched.ll
new file mode 100644
index 0000000000..5fd9c026f8
--- /dev/null
+++ b/test/CodeGen/X86/2006-05-08-InstrSched.ll
@@ -0,0 +1,22 @@
+; RUN: llvm-as < %s | llc -march=x86 -relocation-model=static -sched-lower-defnuse | not grep 'xorb $16, %cl'
+
+%A = external global ushort*
+%B = external global uint
+%C = external global uint
+
+void %test() {
+ %tmp = load ushort** %A
+ %tmp1 = getelementptr ushort* %tmp, int 1
+ %tmp = load ushort* %tmp1
+ %tmp3 = cast ushort %tmp to uint
+ %tmp = load uint* %B
+ %tmp4 = and uint %tmp, 16
+ %tmp5 = load uint* %C
+ %tmp6 = cast uint %tmp4 to ubyte
+ %tmp7 = shl uint %tmp5, ubyte %tmp6
+ %tmp9 = xor ubyte %tmp6, 16
+ %tmp11 = shr uint %tmp3, ubyte %tmp9
+ %tmp12 = or uint %tmp11, %tmp7
+ store uint %tmp12, uint* %C
+ ret void
+}