1 ; Ensure that the MBlaze save_volatiles calling convention (cc74) is handled
2 ; correctly correctly by the MBlaze backend.
4 ; RUN: llc < %s -march=mblaze | FileCheck %s
6 @.str = private constant [28 x i8] c"The interrupt has gone off\0A\00"
8 define cc74 void @mysvol() nounwind noinline {
22 ; CHECK-NOT: mfs r11, rmsr
24 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([28 x i8]* @.str, i32 0, i32 0))
27 ; CHECK-NOT: mts rmsr, r11
43 define cc74 void @mysvol2() nounwind noinline {
45 ; CHECK-NOT: swi r3, r1
46 ; CHECK-NOT: swi r4, r1
47 ; CHECK-NOT: swi r5, r1
48 ; CHECK-NOT: swi r6, r1
49 ; CHECK-NOT: swi r7, r1
50 ; CHECK-NOT: swi r8, r1
51 ; CHECK-NOT: swi r9, r1
52 ; CHECK-NOT: swi r10, r1
53 ; CHECK-NOT: swi r11, r1
54 ; CHECK-NOT: swi r12, r1
57 ; CHECK-NOT: mfs r11, rmsr
60 ; CHECK-NOT: mts rmsr, r11
63 ; CHECK-NOT: lwi r12, r1
64 ; CHECK-NOT: lwi r11, r1
65 ; CHECK-NOT: lwi r10, r1
66 ; CHECK-NOT: lwi r9, r1
67 ; CHECK-NOT: lwi r8, r1
68 ; CHECK-NOT: lwi r7, r1
69 ; CHECK-NOT: lwi r6, r1
70 ; CHECK-NOT: lwi r5, r1
71 ; CHECK-NOT: lwi r4, r1
72 ; CHECK-NOT: lwi r3, r1
77 ; CHECK-NOT: .globl _interrupt_handler
78 ; CHECK-NOT: _interrupt_handler = mysvol
79 ; CHECK-NOT: _interrupt_handler = mysvol2
80 declare i32 @printf(i8*, ...)