brintos

brintos / llvm-project-archived public Read only

0
0
Text · 516 B · 8bfc00a Raw
15 lines · c
1// RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +usermsr \2// RUN: -fsyntax-only -verify3 4#include <x86gprintrin.h>5 6unsigned long long test_urdmsr(unsigned long long __A) {7  return _urdmsr(__A); // expected-error {{call to undeclared function '_urdmsr'}}8}9 10void 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'}}14}15