]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/Hexagon/sdr-global.mir
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / CodeGen / Hexagon / sdr-global.mir
1 # RUN: llc -march=hexagon -run-pass hexagon-split-double %s -o - | FileCheck %s
2
3 # This used to crash because the constant operand was not an immediate.
4 # Make sure we can handle such a case.
5
6 # CHECK: = A2_tfrsi 0
7 # CHECK: = A2_tfrsi @g0
8
9 --- |
10   define i32 @fred() {
11     ret i32 0
12   }
13
14   @g0 = global i32 zeroinitializer
15 ...
16
17 name: fred
18 tracksRegLiveness: true
19 body: |
20   bb.0:
21     %0:doubleregs = A4_combineir 0, @g0
22     $r0 = COPY %0.isub_lo
23     PS_jmpret $r31, implicit-def $pc, implicit $r0
24 ...