xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/pr25828.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i686-pc-windows-msvc -relocation-model=pic | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; MOVPC32r should not generate CFI under windows
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: _foo:
5*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: .cfi_adjust_cfa_offset
6*9880d681SAndroid Build Coastguard Workerdefine void @foo(i8) {
7*9880d681SAndroid Build Coastguard Workerentry-block:
8*9880d681SAndroid Build Coastguard Worker  switch i8 %0, label %bb2 [
9*9880d681SAndroid Build Coastguard Worker    i8 1, label %bb1
10*9880d681SAndroid Build Coastguard Worker    i8 2, label %bb2
11*9880d681SAndroid Build Coastguard Worker    i8 3, label %bb3
12*9880d681SAndroid Build Coastguard Worker    i8 4, label %bb4
13*9880d681SAndroid Build Coastguard Worker    i8 5, label %bb5
14*9880d681SAndroid Build Coastguard Worker  ]
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Workerbb1:
17*9880d681SAndroid Build Coastguard Worker  ret void
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Workerbb2:
20*9880d681SAndroid Build Coastguard Worker  ret void
21*9880d681SAndroid Build Coastguard Worker
22*9880d681SAndroid Build Coastguard Workerbb3:
23*9880d681SAndroid Build Coastguard Worker  ret void
24*9880d681SAndroid Build Coastguard Worker
25*9880d681SAndroid Build Coastguard Workerbb4:
26*9880d681SAndroid Build Coastguard Worker  ret void
27*9880d681SAndroid Build Coastguard Worker
28*9880d681SAndroid Build Coastguard Workerbb5:
29*9880d681SAndroid Build Coastguard Worker  ret void
30*9880d681SAndroid Build Coastguard Worker}
31