40 lines · plain
1# RUN: llc -mtriple=x86_64 -run-pass none -o - %s | FileCheck %s2# This test ensures that the MIR parser parses register mask operands correctly.3 4--- |5 6 define i32 @compute(i32 %a) #0 {7 body:8 %c = mul i32 %a, 119 ret i32 %c10 }11 12 define i32 @foo(i32 %a) #0 {13 entry:14 %b = call i32 @compute(i32 %a)15 ret i32 %b16 }17 18 attributes #0 = { "frame-pointer"="none" }19 20...21---22name: compute23body: |24 bb.0.body:25 $eax = IMUL32rri8 $edi, 11, implicit-def $eflags26 RET64 $eax27...28---29# CHECK: name: foo30name: foo31body: |32 bb.0.entry:33 ; CHECK: PUSH64r $rax34 ; CHECK-NEXT: CALL64pcrel32 @compute, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, implicit-def $eax35 PUSH64r $rax, implicit-def $rsp, implicit $rsp36 CALL64pcrel32 @compute, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, implicit-def $eax37 $rdx = POP64r implicit-def $rsp, implicit $rsp38 RET64 $eax39...40