xref: /aosp_15_r20/external/llvm/test/CodeGen/SystemZ/branch-01.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; Test a simple unconditional jump.
2*9880d681SAndroid Build Coastguard Worker;
3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine void @f1(i8 *%dest) {
6*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: f1:
7*9880d681SAndroid Build Coastguard Worker; CHECK: .L[[LABEL:.*]]:
8*9880d681SAndroid Build Coastguard Worker; CHECK: mvi 0(%r2), 1
9*9880d681SAndroid Build Coastguard Worker; CHECK: j .L[[LABEL]]
10*9880d681SAndroid Build Coastguard Worker  br label %loop
11*9880d681SAndroid Build Coastguard Workerloop:
12*9880d681SAndroid Build Coastguard Worker  store volatile i8 1, i8 *%dest
13*9880d681SAndroid Build Coastguard Worker  br label %loop
14*9880d681SAndroid Build Coastguard Worker}
15