diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-10-21 01:17:30 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-10-21 01:17:30 +0000 |
| commit | c606bfe6600a64be3f99d0b420946de004c57a57 (patch) | |
| tree | 1aad2f80e0b25b29f2bfb9aab827822d06b60b75 /llvm/test/CodeGen/XCore | |
| parent | f60e0a160fc8db67461bcb930924f60a7dccb9be (diff) | |
| download | bcm5719-llvm-c606bfe6600a64be3f99d0b420946de004c57a57.tar.gz bcm5719-llvm-c606bfe6600a64be3f99d0b420946de004c57a57.zip | |
Fix a bit of confusion about .set and produce more readable assembly.
Every target we support has support for assembly that looks like
a = b - c
.long a
What is special about MachO is that the above combination suppresses the
production of a relocation.
With this change we avoid producing the intermediary labels when they don't
add any value.
llvm-svn: 220256
Diffstat (limited to 'llvm/test/CodeGen/XCore')
| -rw-r--r-- | llvm/test/CodeGen/XCore/exception.ll | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/llvm/test/CodeGen/XCore/exception.ll b/llvm/test/CodeGen/XCore/exception.ll index 3179fcdfcf5..fec83eb15ea 100644 --- a/llvm/test/CodeGen/XCore/exception.ll +++ b/llvm/test/CodeGen/XCore/exception.ll @@ -107,17 +107,12 @@ Exit: ; CHECK: .asciiz ; CHECK: .byte 3 ; CHECK: .byte 26 -; CHECK: [[SET0:.L[a-zA-Z0-9_]+]] = [[PRE_G]]-[[START]] -; CHECK: .long [[SET0]] -; CHECK: [[SET1:.L[a-zA-Z0-9_]+]] = [[POST_G]]-[[PRE_G]] -; CHECK: .long [[SET1]] -; CHECK: [[SET2:.L[a-zA-Z0-9_]+]] = [[LANDING]]-[[START]] -; CHECK: .long [[SET2]] +; CHECK: .long [[PRE_G]]-[[START]] +; CHECK: .long [[POST_G]]-[[PRE_G]] +; CHECK: .long [[LANDING]]-[[START]] ; CHECK: .byte 3 -; CHECK: [[SET3:.L[a-zA-Z0-9_]+]] = [[POST_G]]-[[START]] -; CHECK: .long [[SET3]] -; CHECK: [[SET4:.L[a-zA-Z0-9_]+]] = [[END]]-[[POST_G]] -; CHECK: .long [[SET4]] +; CHECK: .long [[POST_G]]-[[START]] +; CHECK: .long [[END]]-[[POST_G]] ; CHECK: .long 0 ; CHECK: .byte 0 ; CHECK: .byte 1 |

