blob: 6cb425758746cfb2ab2e4a31f123aea58045e5f4 [file] [log] [blame]
# 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
...