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(
12 unsigned long long test_urdmsr_const(unsigned long long __A
) {
13 // CHECK-LABEL: @test_urdmsr_const(
14 // CHECK: call i64 @llvm.x86.urdmsr(
18 void test_uwrmsr(unsigned long long __A
, unsigned long long __B
) {
19 // CHECK-LABEL: @test_uwrmsr(
20 // CHECK: call void @llvm.x86.uwrmsr(
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(