2013-02-21 02:09:31 +00:00
|
|
|
# RUN: llvm-mc -show-encoding -triple mips-unknown-unknown %s | FileCheck %s
|
|
|
|
#
|
2013-04-25 23:31:35 +00:00
|
|
|
# CHECK: .text
|
|
|
|
# CHECK: $BB0_2:
|
2012-09-07 00:48:02 +00:00
|
|
|
$BB0_2:
|
2012-10-04 02:29:46 +00:00
|
|
|
.ent directives_test
|
2013-02-20 23:11:17 +00:00
|
|
|
.frame $sp,0,$ra
|
|
|
|
.mask 0x00000000,0
|
|
|
|
.fmask 0x00000000,0
|
2013-04-25 23:31:35 +00:00
|
|
|
# CHECK: b 1332 # encoding: [0x10,0x00,0x01,0x4d]
|
|
|
|
# CHECK: j 1328 # encoding: [0x08,0x00,0x01,0x4c]
|
|
|
|
# CHECK: jal 1328 # encoding: [0x0c,0x00,0x01,0x4c]
|
|
|
|
|
2013-02-20 23:11:17 +00:00
|
|
|
.set noreorder
|
2013-04-25 23:31:35 +00:00
|
|
|
b 1332
|
|
|
|
j 1328
|
|
|
|
jal 1328
|
2013-02-20 23:11:17 +00:00
|
|
|
.set nomacro
|
|
|
|
.set noat
|
2012-09-07 00:48:02 +00:00
|
|
|
$JTI0_0:
|
2013-02-20 23:11:17 +00:00
|
|
|
.gpword ($BB0_2)
|
|
|
|
.word 0x77fffffc
|
2013-01-25 01:31:34 +00:00
|
|
|
# CHECK: $JTI0_0:
|
2013-02-20 23:11:17 +00:00
|
|
|
# CHECK-NEXT: .4byte 2013265916
|
|
|
|
.set at=$12
|
|
|
|
.set macro
|
2013-04-25 23:31:35 +00:00
|
|
|
# CHECK: b 1332 # encoding: [0x10,0x00,0x01,0x4d]
|
|
|
|
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
|
|
|
|
# CHECK: j 1328 # encoding: [0x08,0x00,0x01,0x4c]
|
|
|
|
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
|
|
|
|
# CHECK: jal 1328 # encoding: [0x0c,0x00,0x01,0x4c]
|
|
|
|
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
|
2013-02-20 23:11:17 +00:00
|
|
|
.set reorder
|
2013-04-25 23:31:35 +00:00
|
|
|
b 1332
|
|
|
|
j 1328
|
|
|
|
jal 1328
|
2013-02-20 23:11:17 +00:00
|
|
|
.set at=$a0
|
2013-03-21 21:44:16 +00:00
|
|
|
.set STORE_MASK,$t7
|
|
|
|
.set FPU_MASK,$f7
|
2013-05-28 22:21:05 +00:00
|
|
|
.set r3,$3
|
2013-06-20 11:21:49 +00:00
|
|
|
.set f6,$f6
|
2013-07-10 10:18:10 +00:00
|
|
|
# CHECK: abs.s $f6, $f7 # encoding: [0x46,0x00,0x39,0x85]
|
|
|
|
# CHECK: and $3, $15, $15 # encoding: [0x01,0xef,0x18,0x24]
|
2013-06-20 11:21:49 +00:00
|
|
|
abs.s f6,FPU_MASK
|
2013-05-28 22:21:05 +00:00
|
|
|
and r3,$t7,STORE_MASK
|