summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips/mips1/valid.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/Mips/mips1/valid.s')
-rw-r--r--llvm/test/MC/Mips/mips1/valid.s25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/mips1/valid.s b/llvm/test/MC/Mips/mips1/valid.s
index 5080e77cae1..2a4de302e84 100644
--- a/llvm/test/MC/Mips/mips1/valid.s
+++ b/llvm/test/MC/Mips/mips1/valid.s
@@ -124,4 +124,29 @@ a:
xor $s2,$a0,$s8
xor $2, 4 # CHECK: xori $2, $2, 4 # encoding: [0x38,0x42,0x00,0x04]
+ .set at
+ trunc.w.s $f4,$f6,$4
+ # CHECK: cfc1 $4, $ra # encoding: [0x44,0x44,0xf8,0x00]
+ # CHECK: cfc1 $4, $ra # encoding: [0x44,0x44,0xf8,0x00]
+ # CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
+ # CHECK: ori $1, $4, 3 # encoding: [0x34,0x81,0x00,0x03]
+ # CHECK: xori $1, $1, 2 # encoding: [0x38,0x21,0x00,0x02]
+ # CHECK: ctc1 $1, $ra # encoding: [0x44,0xc1,0xf8,0x00]
+ # CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
+ # CHECK: cvt.w.s $f4, $f6 # encoding: [0x46,0x00,0x31,0x24]
+ # CHECK: ctc1 $4, $ra # encoding: [0x44,0xc4,0xf8,0x00]
+ # CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
+
+ trunc.w.d $f4,$f6,$4
+ # CHECK: cfc1 $4, $ra # encoding: [0x44,0x44,0xf8,0x00]
+ # CHECK: cfc1 $4, $ra # encoding: [0x44,0x44,0xf8,0x00]
+ # CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
+ # CHECK: ori $1, $4, 3 # encoding: [0x34,0x81,0x00,0x03]
+ # CHECK: xori $1, $1, 2 # encoding: [0x38,0x21,0x00,0x02]
+ # CHECK: ctc1 $1, $ra # encoding: [0x44,0xc1,0xf8,0x00]
+ # CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
+ # CHECK: cvt.w.d $f4, $f6 # encoding: [0x46,0x20,0x31,0x24]
+ # CHECK: ctc1 $4, $ra # encoding: [0x44,0xc4,0xf8,0x00]
+ # CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
+
1:
OpenPOWER on IntegriCloud