forked from OSchip/llvm-project
23 lines
316 B
YAML
23 lines
316 B
YAML
# 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
|
|
...
|
|
|