mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
More CellSPU refinements:
- struct_2.ll: Completely unaligned load/store testing - call_indirect.ll, struct_1.ll: Add test lines to exercise X-form [$reg($reg)] addressing At this point, loads and stores should be under control (he says in an optimistic tone of voice.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45882 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,14 +1,27 @@
|
||||
; RUN: llvm-as -o - %s | llc -march=cellspu > %t1.s
|
||||
; RUN: llvm-as -o - %s | llc -march=cellspu -mattr=large_mem > %t2.s
|
||||
; RUN: grep lqa %t1.s | count 10 &&
|
||||
; RUN: grep lqd %t1.s | count 2 &&
|
||||
; RUN: grep lqd %t1.s | count 4 &&
|
||||
; RUN: grep rotqbyi %t1.s | count 5 &&
|
||||
; RUN: grep xshw %t1.s | count 1 &&
|
||||
; RUN: grep andi %t1.s | count 4 &&
|
||||
; RUN: grep cbd %t1.s | count 3 &&
|
||||
; RUN: grep chd %t1.s | count 1 &&
|
||||
; RUN: grep cwd %t1.s | count 1 &&
|
||||
; RUN: grep shufb %t1.s | count 5 &&
|
||||
; RUN: grep cwd %t1.s | count 3 &&
|
||||
; RUN: grep shufb %t1.s | count 7 &&
|
||||
; RUN: grep stqa %t1.s | count 5
|
||||
; RUN: grep iohl %t2.s | count 14 &&
|
||||
; RUN: grep ilhu %t2.s | count 14 &&
|
||||
; RUN: grep lqx %t2.s | count 14 &&
|
||||
; RUN: grep rotqbyi %t2.s | count 5 &&
|
||||
; RUN: grep xshw %t2.s | count 1 &&
|
||||
; RUN: grep andi %t2.s | count 4 &&
|
||||
; RUN: grep cbd %t2.s | count 3 &&
|
||||
; RUN: grep chd %t2.s | count 1 &&
|
||||
; RUN: grep cwd %t2.s | count 3 &&
|
||||
; RUN: grep shufb %t2.s | count 7 &&
|
||||
; RUN: grep stqx %t2.s | count 7
|
||||
|
||||
; ModuleID = 'struct_1.bc'
|
||||
target datalayout = "E-p:32:32:128-f64:64:128-f32:32:128-i64:32:128-i32:32:128-i16:16:128-i8:8:128-i1:8:128-a0:0:128-v128:128:128-s0:128:128"
|
||||
target triple = "spu"
|
||||
@@ -105,3 +118,17 @@ entry:
|
||||
store i16 %s, i16* getelementptr (%struct.hackstate* @state, i32 0, i32 4), align 16
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @set_hackstate_i3(i32 %i) {
|
||||
entry:
|
||||
store i32 %i, i32* getelementptr (%struct.hackstate* @state, i32 0, i32 11), align 16
|
||||
ret void
|
||||
}
|
||||
|
||||
|
||||
define void @set_hackstate_i6(i32 %i) {
|
||||
entry:
|
||||
store i32 %i, i32* getelementptr (%struct.hackstate* @state, i32 0, i32 13), align 16
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user