mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-21 19:36:59 +00:00
Another instruction scheduling test case
llvm-svn: 28203
This commit is contained in:
parent
1a8feb189e
commit
0f8516a3e0
22
test/Regression/CodeGen/X86/2006-05-08-InstrSched.ll
Normal file
22
test/Regression/CodeGen/X86/2006-05-08-InstrSched.ll
Normal file
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user