diff options
author | Florian Hahn <florian.hahn@arm.com> | 2017-07-12 11:52:28 +0000 |
---|---|---|
committer | Florian Hahn <florian.hahn@arm.com> | 2017-07-12 11:52:28 +0000 |
commit | 745266b2a7b4903e592915a5bfad747156076979 (patch) | |
tree | eb168ef0188beb3af486410e8b2c4bdd7e38ab26 /llvm/test/Linker/Inputs/thumb-module-inline-asm.ll | |
parent | ff7f42e61a13e8b8e26c43891d02f573d86b8ce5 (diff) | |
download | bcm5719-llvm-745266b2a7b4903e592915a5bfad747156076979.tar.gz bcm5719-llvm-745266b2a7b4903e592915a5bfad747156076979.zip |
[Linker] Add directives to support mixing ARM/Thumb module-level inline asm.
Summary:
By prepending `.text .thumb .balign 2` to the module-level inline
assembly from a Thumb module, the assembler will generate the assembly
from that module as Thumb, even if the destination module uses an ARM
triple. Similar directives are used for module-level inline assembly in
ARM modules.
The alignment and instruction set are reset based on the target triple
before emitting the first function label.
Reviewers: olista01, tejohnson, echristo, t.p.northover, rafael
Reviewed By: echristo
Subscribers: aemerson, javed.absar, eraman, kristof.beyls, llvm-commits
Differential Revision: https://reviews.llvm.org/D34622
llvm-svn: 307772
Diffstat (limited to 'llvm/test/Linker/Inputs/thumb-module-inline-asm.ll')
-rw-r--r-- | llvm/test/Linker/Inputs/thumb-module-inline-asm.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Linker/Inputs/thumb-module-inline-asm.ll b/llvm/test/Linker/Inputs/thumb-module-inline-asm.ll new file mode 100644 index 00000000000..7792ff96d5b --- /dev/null +++ b/llvm/test/Linker/Inputs/thumb-module-inline-asm.ll @@ -0,0 +1,3 @@ +target triple = "thumbv7-linux-gnueabihf" + +module asm "orn r1, r2, r2" |