Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / fastcall.cpp
blob4c94c1623ee1686595237ffe1e2b1b9fb63ad0f8
1 // RUN: %clang_cc1 -no-enable-noundef-analysis -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s
3 void __attribute__((fastcall)) foo1(int &y);
4 void bar1(int &y) {
5 // CHECK-LABEL: define{{.*}} void @_Z4bar1Ri
6 // CHECK: call x86_fastcallcc void @_Z4foo1Ri(ptr inreg nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %
7 foo1(y);
10 struct S1 {
11 int x;
12 S1(const S1 &y);
15 void __attribute__((fastcall)) foo2(S1 a, int b);
16 void bar2(S1 a, int b) {
17 // CHECK-LABEL: define{{.*}} void @_Z4bar22S1i
18 // CHECK: call x86_fastcallcc void @_Z4foo22S1i(ptr inreg %{{.*}}, i32 inreg %
19 foo2(a, b);