Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/Thumb/inlineasm-imm-thumb.ll @ 77:54457678186b LLVM3.6
LLVM 3.6
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Sep 2014 22:06:00 +0900 |
parents | 95c75e76d11b |
children |
comparison
equal
deleted
inserted
replaced
34:e874dbf0ad9d | 77:54457678186b |
---|---|
1 ; RUN: llc < %s -march=thumb | 1 ; RUN: llc -mtriple=thumb-eabi -no-integrated-as %s -o /dev/null |
2 | 2 |
3 ; Test Thumb-mode "I" constraint, for ADD immediate. | 3 ; Test Thumb-mode "I" constraint, for ADD immediate. |
4 define i32 @testI(i32 %x) { | 4 define i32 @testI(i32 %x) { |
5 %y = call i32 asm "add $0, $1, $2", "=r,r,I"( i32 %x, i32 255 ) nounwind | 5 %y = call i32 asm "add $0, $1, $2", "=r,r,I"( i32 %x, i32 255 ) nounwind |
6 ret i32 %y | 6 ret i32 %y |