diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-03-06 11:41:12 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-03-06 11:41:12 +0000 |
commit | 9aff323a074658eee2de69862d202a8638b59c05 (patch) | |
tree | 3fe31410bc5e3e7157891018bc011ab36e0269ff /test/CodeGen/MSP430/AddrMode-mov-xr.ll | |
parent | 7b323a34fa034389e9e439f6c02eeb73e87ab9db (diff) | |
download | llvm-9aff323a074658eee2de69862d202a8638b59c05.tar.gz llvm-9aff323a074658eee2de69862d202a8638b59c05.tar.bz2 llvm-9aff323a074658eee2de69862d202a8638b59c05.tar.xz |
Do not use '&' prefix for globals when register base field is non-zero, otherwise msp430-as will silently miscompile the code (TI's assembler report an error though).
This fixes PR6349
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/MSP430/AddrMode-mov-xr.ll')
-rw-r--r-- | test/CodeGen/MSP430/AddrMode-mov-xr.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/MSP430/AddrMode-mov-xr.ll b/test/CodeGen/MSP430/AddrMode-mov-xr.ll index 333c80011e..4b327b0578 100644 --- a/test/CodeGen/MSP430/AddrMode-mov-xr.ll +++ b/test/CodeGen/MSP430/AddrMode-mov-xr.ll @@ -26,7 +26,7 @@ define void @am3(i16 %i, i8 %a) nounwind { ret void } ; CHECK: am3: -; CHECK: mov.b r14, &bar(r15) +; CHECK: mov.b r14, bar(r15) define void @am4(i16 %a) nounwind { volatile store i16 %a, i16* inttoptr(i16 32 to i16*) @@ -63,5 +63,5 @@ define void @am7(i16 %n, i8 %a) nounwind { ret void } ; CHECK: am7: -; CHECK: mov.b r14, &duh+2(r15) +; CHECK: mov.b r14, duh+2(r15) |