1 ; RUN: llc < %s -verify-machineinstrs -mtriple=powerpc-unknown-unkown \
2 ; RUN: -mcpu=pwr7 2>&1 | FileCheck %s
3 ; RUN: llc < %s -verify-machineinstrs -mtriple=powerpc64-unknown-unkown \
4 ; RUN: -mcpu=pwr7 2>&1 | FileCheck %s
6 define void @test_r1_clobber() {
8 call void asm sideeffect "nop", "~{r1}"()
12 ; CHECK: warning: inline asm clobber list contains reserved registers: R1
13 ; CHECK-NEXT: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.
15 define void @test_x1_clobber() {
17 call void asm sideeffect "nop", "~{x1}"()
21 ; CHECK: warning: inline asm clobber list contains reserved registers: X1
22 ; CHECK-NEXT: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.