source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/inlineasm-imm-thumb.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 611 bytes
Line 
1; RUN: llc -mtriple=thumbv5-none-linux-gnueabi -no-integrated-as %s -o /dev/null
2
3; Test thumb-mode "I" constraint, for any Data Processing immediate.
4define void @testI() {
5        tail call void asm sideeffect ".word $0", "I"( i32 255 ) nounwind
6        ret void
7}
8
9; Test thumb-mode "J" constraint, for compatibility with unknown use in GCC.
10define void @testJ() {
11        tail call void asm sideeffect ".word $0", "J"( i32 -254 ) nounwind
12        ret void
13}
14
15; Test thumb-mode "L" constraint, for negated Data Processing immediates.
16define void @testL() {
17        tail call void asm sideeffect ".word $0", "L"( i32 -7 ) nounwind
18        ret void
19}
20
Note: See TracBrowser for help on using the repository browser.