llvm-for-llvmta/test/CodeGen/Hexagon/duplex-addi-global-imm.mir

23 lines
316 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# RUN: llc -march=hexagon -start-after if-converter %s -o - | FileCheck %s
# This used to crash.
# CHECK: add(r0,##g)
--- |
@g = global i32 0
define void @fred() {
ret void
}
...
---
name: fred
tracksRegLiveness: true
body: |
bb.0:
liveins: $r0
$r0 = A2_addi $r0, @g
$r1 = A2_tfrsi 0
...