diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-09 19:15:00 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-09 19:15:00 +0000 |
commit | ce5dfb692a25c5e4f0172a6771683aa51444120c (patch) | |
tree | b824f9db00d9b370b6d5b4c4e8179868fcea70b7 /llvm/test | |
parent | fb8ded911ec8f04bace7dbab57e46c0f91707a5a (diff) | |
download | bcm5719-llvm-ce5dfb692a25c5e4f0172a6771683aa51444120c.tar.gz bcm5719-llvm-ce5dfb692a25c5e4f0172a6771683aa51444120c.zip |
ARM isLegalAddressImmediate should check if type is a simple type now that optimizer can create values of funky scalar types.
llvm-svn: 66429
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/ARM/2009-03-09-AddrModeBug.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/2009-03-09-AddrModeBug.ll b/llvm/test/CodeGen/ARM/2009-03-09-AddrModeBug.ll new file mode 100644 index 00000000000..0ec6d7d4ff7 --- /dev/null +++ b/llvm/test/CodeGen/ARM/2009-03-09-AddrModeBug.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | llc -march=arm + + %struct.hit_t = type { %struct.v_t, double } + %struct.node_t = type { %struct.hit_t, %struct.hit_t, i32 } + %struct.v_t = type { double, double, double } + +define fastcc %struct.node_t* @_ZL6createP6node_tii3v_tS1_d(%struct.node_t* %n, i32 %lvl, i32 %dist, i64 %c.0.0, i64 %c.0.1, i64 %c.0.2, i64 %d.0.0, i64 %d.0.1, i64 %d.0.2, double %r) nounwind { +entry: + %0 = getelementptr %struct.node_t* %n, i32 0, i32 1 ; <%struct.hit_t*> [#uses=1] + %1 = bitcast %struct.hit_t* %0 to i256* ; <i256*> [#uses=1] + store i256 0, i256* %1, align 4 + unreachable +} |