OSDN Git Service

[MIPS GlobalISel] Select global address
[android-x86/external-llvm.git] / test / CodeGen / Mips / sll-micromips-r6-encoding.mir
1 # RUN: llc -march=mips -mcpu=mips32r6 -mattr=+micromips %s -start-after=xray-instrumentation -o - -show-mc-encoding | FileCheck %s
2
3 # Test that the 'sll $zero, $zero, 0' is correctly recognized as a real
4 # instruction rather than some unimplemented opcode for the purposes of
5 # encoding an instruction.
6
7 # CHECK-LABEL: a:
8 # CHECK:  nop                           # encoding: [0x00,0x00,0x00,0x00]
9 # CHECK:  jrc   $ra                     # encoding: [0x45,0xbf]
10 ---
11 name:            a
12 alignment:       2
13 exposesReturnsTwice: false
14 legalized:       false
15 regBankSelected: false
16 selected:        false
17 tracksRegLiveness: false
18 registers:
19 liveins:
20   - { reg: '$a0', virtual-reg: '' }
21 frameInfo:
22   isFrameAddressTaken: false
23   isReturnAddressTaken: false
24   hasStackMap:     false
25   hasPatchPoint:   false
26   stackSize:       0
27   offsetAdjustment: 0
28   maxAlignment:    1
29   adjustsStack:    false
30   hasCalls:        false
31   stackProtector:  ''
32   maxCallFrameSize: 0
33   hasOpaqueSPAdjustment: false
34   hasVAStart:      false
35   hasMustTailInVarArgFunc: false
36   savePoint:       ''
37   restorePoint:    ''
38 fixedStack:
39 stack:
40 constants:
41 body:             |
42   bb.0.entry:
43     $zero = SLL_MMR6 killed $zero, 0
44     JRC16_MM undef $ra, implicit $v0
45
46 ...