1 // RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +usermsr \
2 // RUN: -fsyntax-only -verify
4 #include <x86gprintrin.h>
6 unsigned long long test_urdmsr(unsigned long long __A
) {
7 return _urdmsr(__A
); // expected-error {{call to undeclared function '_urdmsr'}}
10 void test_uwrmsr(unsigned long long __A
, unsigned long long __B
) {
11 // CHECK-LABEL: @test_uwrmsr(
12 // CHECK: call void @llvm.x86.uwrmsr(
13 _uwrmsr(__A
, __B
); // expected-error {{call to undeclared function '_uwrmsr'}}