32 lines · c
1// RUN: %clang_cc1 %s -ffreestanding -triple x86_64-unknown-unknown -target-feature +uintr -emit-llvm -o - | FileCheck %s2 3#include <x86gprintrin.h>4 5void test_clui(void) {6// CHECK-LABEL: @test_clui7// CHECK: call void @llvm.x86.clui()8// CHECK: ret9 _clui();10}11 12void test_stui(void) {13// CHECK-LABEL: @test_stui14// CHECK: call void @llvm.x86.stui()15// CHECK: ret16 _stui();17}18 19unsigned char test_testui(void) {20// CHECK-LABEL: @test_testui21// CHECK: %[[TMP0:.+]] = call i8 @llvm.x86.testui()22// CHECK: ret i8 %[[TMP0]]23 return _testui();24}25 26void test_senduipi(unsigned long long a) {27// CHECK-LABEL: @test_senduipi28// CHECK: call void @llvm.x86.senduipi(i64 %{{.+}})29// CHECK: ret30 _senduipi(a);31}32