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