================
@@ -348,6 +348,20 @@ static inline unsigned long _inpd(unsigned short port) {
   return ret;
 }
 
+static inline int _outp(unsigned short port, int data) {
+  __asm__ volatile("outb %b0, %w1" : : "a"(data), "Nd"(port));
+  return data;
----------------
phoebewang wrote:

Return the direct `data` seems useless. Did you check if MSVC returns the same 
value or it actually reads from the port and returns the old data?

https://github.com/llvm/llvm-project/pull/93774
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to