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

23 lines
316 B
Plaintext
Raw Normal View History

# 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
...