xref: /aosp_15_r20/external/llvm/test/CodeGen/MSP430/asm-clobbers.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:e-p:16:16-i32:16:32-a:16-n8:16"
4*9880d681SAndroid Build Coastguard Workertarget triple = "msp430---elf"
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine void @test() {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test:
9*9880d681SAndroid Build Coastguard Worker; CHECK: push.w r10
10*9880d681SAndroid Build Coastguard Worker  call void asm sideeffect "", "~{r10}"()
11*9880d681SAndroid Build Coastguard Worker; CHECK: pop.w r10
12*9880d681SAndroid Build Coastguard Worker  ret void
13*9880d681SAndroid Build Coastguard Worker}
14