diff options
author | Eric Christopher <echristo@apple.com> | 2012-05-07 03:13:42 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-05-07 03:13:42 +0000 |
commit | e5076d484b2f530e2e2422fb06c268970b53b055 (patch) | |
tree | 84ceba6e44f14606aed67cfb032672e421a669dd /test/CodeGen/Mips/inlineasm-cnstrnt-bad-J.ll | |
parent | 50ab03954ec0a43708ad0a5cf3d253ce41a30db3 (diff) | |
download | llvm-e5076d484b2f530e2e2422fb06c268970b53b055.tar.gz llvm-e5076d484b2f530e2e2422fb06c268970b53b055.tar.bz2 llvm-e5076d484b2f530e2e2422fb06c268970b53b055.tar.xz |
Support the 'J' constraint.
Patch by Jack Carter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/inlineasm-cnstrnt-bad-J.ll')
-rw-r--r-- | test/CodeGen/Mips/inlineasm-cnstrnt-bad-J.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/inlineasm-cnstrnt-bad-J.ll b/test/CodeGen/Mips/inlineasm-cnstrnt-bad-J.ll new file mode 100644 index 0000000000..1fdf672fe1 --- /dev/null +++ b/test/CodeGen/Mips/inlineasm-cnstrnt-bad-J.ll @@ -0,0 +1,16 @@ +; +;This is a negative test. The constant value given for the constraint (J) +;is non-zero (3). +; +; RUN: not llc -march=mipsel < %s 2> %t +; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s + +define i32 @main() nounwind { +entry: + +;CHECK-ERRORS: error: invalid operand for inline asm constraint 'J' + + tail call i32 asm "addi $0,$1,$2", "=r,r,J"(i32 1024, i32 3) nounwind + ret i32 0 +} + |