Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / AArch64 / sve-intrinsics / acle_sve_setffr.c
blob7e6729e80aa7e35a326405b996822f5d38624d2a
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // REQUIRES: aarch64-registered-target
3 // RUN: %clang_cc1 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
4 // RUN: %clang_cc1 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
5 // RUN: %clang_cc1 -triple aarch64 -target-feature +sve -S -disable-O0-optnone -Werror -o /dev/null %s
6 #include <arm_sve.h>
8 // CHECK-LABEL: @test_svsetffr(
9 // CHECK-NEXT: entry:
10 // CHECK-NEXT: tail call void @llvm.aarch64.sve.setffr()
11 // CHECK-NEXT: ret void
13 // CPP-CHECK-LABEL: @_Z13test_svsetffrv(
14 // CPP-CHECK-NEXT: entry:
15 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.setffr()
16 // CPP-CHECK-NEXT: ret void
18 void test_svsetffr()
20 svsetffr();