[MLIR][TOSA] Update CustomOp input and output names (#118408)
[llvm-project.git] / clang / test / CodeGen / X86 / usermsr-builtins.c
blob0d58bc98c204c350675aaf2e42fc7f3bddb3b48b
1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +usermsr \
2 // RUN: -emit-llvm -o - -Wall -Werror -pedantic -Wno-gnu-statement-expression | FileCheck %s
4 #include <x86gprintrin.h>
6 unsigned long long test_urdmsr(unsigned long long __A) {
7 // CHECK-LABEL: @test_urdmsr(
8 // CHECK: call i64 @llvm.x86.urdmsr(
9 return _urdmsr(__A);
12 unsigned long long test_urdmsr_const(unsigned long long __A) {
13 // CHECK-LABEL: @test_urdmsr_const(
14 // CHECK: call i64 @llvm.x86.urdmsr(
15 return _urdmsr(123u);
18 void test_uwrmsr(unsigned long long __A, unsigned long long __B) {
19 // CHECK-LABEL: @test_uwrmsr(
20 // CHECK: call void @llvm.x86.uwrmsr(
21 _uwrmsr(__A, __B);
24 void test_uwrmsr_const(unsigned long long __A, unsigned long long __B) {
25 // CHECK-LABEL: @test_uwrmsr_const(
26 // CHECK: call void @llvm.x86.uwrmsr(
27 _uwrmsr(123u, __B);