This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1- // skip-filecheck
21// Checks that only functions with the compatible instruction_set attributes are inlined.
32//
43// A function is "compatible" when the *callee* has the same attribute or no attribute.
@@ -47,16 +46,26 @@ fn inline_always_and_using_inline_asm() {
4746// EMIT_MIR inline_instruction_set.t32.Inline.diff
4847#[ instruction_set( arm:: t32) ]
4948pub fn t32 ( ) {
49+ // CHECK-LABEL: fn t32(
50+ // CHECK-NOT: (inlined instruction_set_a32)
5051 instruction_set_a32 ( ) ;
52+ // CHECK: (inlined instruction_set_t32)
5153 instruction_set_t32 ( ) ;
54+ // CHECK: (inlined instruction_set_default)
5255 instruction_set_default ( ) ;
56+ // CHECK-NOT: (inlined inline_always_and_using_inline_asm)
5357 inline_always_and_using_inline_asm ( ) ;
5458}
5559
5660// EMIT_MIR inline_instruction_set.default.Inline.diff
5761pub fn default ( ) {
62+ // CHECK-LABEL: fn default(
63+ // CHECK-NOT: (inlined instruction_set_a32)
5864 instruction_set_a32 ( ) ;
65+ // CHECK-NOT: (inlined instruction_set_t32)
5966 instruction_set_t32 ( ) ;
67+ // CHECK: (inlined instruction_set_default)
6068 instruction_set_default ( ) ;
69+ // CHECK: (inlined inline_always_and_using_inline_asm)
6170 inline_always_and_using_inline_asm ( ) ;
6271}
You can’t perform that action at this time.
0 commit comments