[mlir] Improve error message when number of operands and types differ (#118488)
[llvm-project.git] / clang / test / CodeGen / X86 / usermsr-builtins-error-32.c
blob8bfc00a1ea84e06d810263bd78763cc142a18593
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'}}