1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -S -O2 -o - %s | FileCheck %s
5 // CHECK: movl $1, %eax
7 // CHECK-NEXT: outl %eax, $1
10 static inline void pr41027(unsigned a
, unsigned b
) {
11 if (__builtin_constant_p(a
)) {
12 __asm__
volatile("outl %0,%w1" : : "a"(b
), "n"(a
));
14 __asm__
volatile("outl %0,%w1" : : "a"(b
), "d"(a
));
18 void f(unsigned port
) {