- crashes, why?
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 21 Aug 2008 13:03:20 +0000 (13:03 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 21 Aug 2008 13:03:20 +0000 (13:03 +0000)
[r21314]

ir/be/test/asm_test5.c [new file with mode: 0644]

diff --git a/ir/be/test/asm_test5.c b/ir/be/test/asm_test5.c
new file mode 100644 (file)
index 0000000..9e51f50
--- /dev/null
@@ -0,0 +1,12 @@
+
+unsigned get(void)
+{
+       unsigned a;
+       __asm__(" movl $17,%0 ": "=D"(a));
+       return a;
+}
+
+int main(void) {
+       printf("a: %u\n", get());
+       return 0;
+}