Update testcase to show that we don't emit an error for sizes <= 32-bits.
llvm-svn: 167748
This commit is contained in:
parent
d4c5be61f2
commit
039136664d
|
@ -8,6 +8,7 @@ typedef unsigned long long u_int64_t;
|
|||
typedef u_int64_t uint64_t;
|
||||
|
||||
int main () {
|
||||
// Error out if size is > 32-bits.
|
||||
uint32_t msr = 0x8b;
|
||||
uint64_t val = 0;
|
||||
__asm__ volatile("wrmsr"
|
||||
|
@ -15,4 +16,9 @@ int main () {
|
|||
: "c" (msr),
|
||||
"a" ((val & 0xFFFFFFFFUL)), // expected-error {{invalid input size for constraint 'a'}}
|
||||
"d" (((val >> 32) & 0xFFFFFFFFUL)));
|
||||
|
||||
// Don't error out if the size of the destination is <= 32 bits.
|
||||
unsigned char data;
|
||||
unsigned int port;
|
||||
__asm__ volatile("outb %0, %w1" : : "a" (data), "Nd" (port)); // No error expected.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue