1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -target-feature +bf16 -S -emit-llvm -o - %s | FileCheck %s
4 // CHECK-LABEL: @_Z3foo10svboolx4_t(
6 // CHECK-NEXT: [[ARG_ADDR:%.*]] = alloca <vscale x 64 x i1>, align 2
7 // CHECK-NEXT: store <vscale x 64 x i1> [[ARG:%.*]], ptr [[ARG_ADDR]], align 2
8 // CHECK-NEXT: [[TMP0:%.*]] = load <vscale x 64 x i1>, ptr [[ARG_ADDR]], align 2
9 // CHECK-NEXT: ret <vscale x 64 x i1> [[TMP0]]
11 __clang_svboolx4_t
foo(__clang_svboolx4_t arg
) { return arg
; }
13 __clang_svboolx4_t
bar();
14 // CHECK-LABEL: @_Z4foo2v(
16 // CHECK-NEXT: [[CALL:%.*]] = call <vscale x 64 x i1> @_Z3barv()
17 // CHECK-NEXT: ret <vscale x 64 x i1> [[CALL]]
19 __clang_svboolx4_t
foo2() { return bar(); }
21 __clang_svboolx4_t
bar2(__clang_svboolx4_t
);
22 // CHECK-LABEL: @_Z4foo310svboolx4_t(
24 // CHECK-NEXT: [[ARG_ADDR:%.*]] = alloca <vscale x 64 x i1>, align 2
25 // CHECK-NEXT: store <vscale x 64 x i1> [[ARG:%.*]], ptr [[ARG_ADDR]], align 2
26 // CHECK-NEXT: [[TMP0:%.*]] = load <vscale x 64 x i1>, ptr [[ARG_ADDR]], align 2
27 // CHECK-NEXT: [[CALL:%.*]] = call <vscale x 64 x i1> @_Z4bar210svboolx4_t(<vscale x 64 x i1> [[TMP0]])
28 // CHECK-NEXT: ret <vscale x 64 x i1> [[CALL]]
30 __clang_svboolx4_t
foo3(__clang_svboolx4_t arg
) { return bar2(arg
); }