diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-04 17:58:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-04 17:58:46 +0000 |
commit | d4ac35b350c1925e3921df7a3f1b2524dca79b46 (patch) | |
tree | e6ae84791d6481fd82931e5c597e56ab88b5b2ba /test/CodeGen/CellSPU | |
parent | e9f0fb4179d57c631a72fa8020ca05a4d132e15b (diff) | |
download | external_llvm-d4ac35b350c1925e3921df7a3f1b2524dca79b46.zip external_llvm-d4ac35b350c1925e3921df7a3f1b2524dca79b46.tar.gz external_llvm-d4ac35b350c1925e3921df7a3f1b2524dca79b46.tar.bz2 |
"on the rare occasion the SPU BE produces illegal assembly - it tries to emit an add instruction of the form 'a reg, reg, imm'."
Patch by Kalle Raiskila!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/CellSPU')
-rw-r--r-- | test/CodeGen/CellSPU/storestruct.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/CellSPU/storestruct.ll b/test/CodeGen/CellSPU/storestruct.ll new file mode 100644 index 0000000..47185e8 --- /dev/null +++ b/test/CodeGen/CellSPU/storestruct.ll @@ -0,0 +1,13 @@ +; RUN: llc < %s -march=cellspu | FileCheck %s + +%0 = type {i32, i32} +@buffer = global [ 72 x %0 ] zeroinitializer + +define void@test( ) { +; Check that there is no illegal "a rt, ra, imm" instruction +; CHECK-NOT: a {{\$., \$., 5..}} +; CHECK: a {{\$., \$., \$.}} + store %0 {i32 1, i32 2} , + %0* getelementptr ([72 x %0]* @buffer, i32 0, i32 71) + ret void +} |