mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
43b40035ba
Fix syntax of tests to ensure grep pattern is properly quoted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36134 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
622 B
LLVM
24 lines
622 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | \
|
|
; RUN: llc -march=x86 -relocation-model=static | not grep {subl.*%esp}
|
|
|
|
%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
|
|
}
|