Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o %t -triple i386-pc-linux-gnu -O2 |
Anders Carlsson | bad3a94 | 2009-05-01 00:16:04 +0000 | [diff] [blame] | 2 | // RUN: not grep "load" %t |
3 | |||||
4 | // <rdar://problem/6841383> | ||||
5 | int cpuid(unsigned data) { | ||||
6 | int a, b; | ||||
7 | |||||
8 | asm("xyz" :"=a"(a), "=d"(b) : "a"(data)); | ||||
9 | return a + b; | ||||
Eli Friedman | c219a15 | 2009-05-19 11:12:40 +0000 | [diff] [blame] | 10 | } |