diff options
author | Bradley Smith <bradley.smith@arm.com> | 2015-01-19 16:36:02 +0000 |
---|---|---|
committer | Bradley Smith <bradley.smith@arm.com> | 2015-01-19 16:36:02 +0000 |
commit | 30057b245e274b05429f1e1e82542bc2a3be6bb3 (patch) | |
tree | 0393910c31a59f7ddbc24d4a152a91bacd404592 /llvm/test | |
parent | 12ca34f53ff8449283fc6a0e1c6ab1f739f3158f (diff) | |
download | bcm5719-llvm-30057b245e274b05429f1e1e82542bc2a3be6bb3.tar.gz bcm5719-llvm-30057b245e274b05429f1e1e82542bc2a3be6bb3.zip |
[ARM] Fixup sign extend instruction availability w.r.t. DSP extension
llvm-svn: 226468
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/ARM/thumb2-dsp-diag.s | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/thumb2-dsp-diag.s b/llvm/test/MC/ARM/thumb2-dsp-diag.s new file mode 100644 index 00000000000..cb0e7744ef4 --- /dev/null +++ b/llvm/test/MC/ARM/thumb2-dsp-diag.s @@ -0,0 +1,24 @@ +; RUN: not llvm-mc -triple=thumbv7m < %s 2> %t +; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s + +sxtab r0, r0, r0 +sxtah r0, r0, r0 +sxtab16 r0, r0, r0 +sxtb16 r0, r0 +sxtb16 r0, r0, ror #8 +; CHECK-ERRORS: error: instruction requires: arm-mode +; CHECK-ERRORS: error: instruction requires: arm-mode +; CHECK-ERRORS: error: instruction requires: arm-mode +; CHECK-ERRORS: error: instruction requires: arm-mode +; CHECK-ERRORS: error: invalid operand for instruction + +uxtab r0, r0, r0 +uxtah r0, r0, r0 +uxtab16 r0, r0, r0 +uxtb16 r0, r0 +uxtb16 r0, r0, ror #8 +; CHECK-ERRORS: error: instruction requires: arm-mode +; CHECK-ERRORS: error: instruction requires: arm-mode +; CHECK-ERRORS: error: instruction requires: arm-mode +; CHECK-ERRORS: error: instruction requires: arm-mode +; CHECK-ERRORS: error: invalid operand for instruction |