[dragonegg] r201341 - Update a couple of dragoneg-compilator tests corresponding to r201333.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Feb 13 08:16:36 PST 2014
Author: chapuni
Date: Thu Feb 13 10:16:36 2014
New Revision: 201341
URL: http://llvm.org/viewvc/llvm-project?rev=201341&view=rev
Log:
Update a couple of dragoneg-compilator tests corresponding to r201333.
Fake mnemonics are unavailable any more.
Modified:
dragonegg/trunk/test/compilator/local/2010-05-18-asmsched.c
dragonegg/trunk/test/compilator/local/pr3373.c
Modified: dragonegg/trunk/test/compilator/local/2010-05-18-asmsched.c
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/2010-05-18-asmsched.c?rev=201341&r1=201340&r2=201341&view=diff
==============================================================================
--- dragonegg/trunk/test/compilator/local/2010-05-18-asmsched.c (original)
+++ dragonegg/trunk/test/compilator/local/2010-05-18-asmsched.c Thu Feb 13 10:16:36 2014
@@ -9,9 +9,9 @@ void foo(int x, int y) {
register int lr9 asm("r9") = x;
register int lr10 asm("r10") = y;
int foo;
- asm volatile("bar" : "=r"(lr9) : "r"(lr9), "r"(lr10));
+ asm volatile("nop" : "=r"(lr9) : "r"(lr9), "r"(lr10));
foo = lr9;
lr9 = x;
lr10 = foo;
- asm volatile("bar" : "=r"(lr9) : "r"(lr9), "r"(lr10));
+ asm volatile("nop" : "=r"(lr9) : "r"(lr9), "r"(lr10));
}
Modified: dragonegg/trunk/test/compilator/local/pr3373.c
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/pr3373.c?rev=201341&r1=201340&r2=201341&view=diff
==============================================================================
--- dragonegg/trunk/test/compilator/local/pr3373.c (original)
+++ dragonegg/trunk/test/compilator/local/pr3373.c Thu Feb 13 10:16:36 2014
@@ -50,7 +50,7 @@ __asm__ ("lcall *(%%edi); cld": "=a" (re
int test(unsigned long b) {
int a;
- asm volatile("foo " : "=a" (a) :"0" (b));
+ asm volatile("nop " : "=a" (a) :"0" (b));
return a;
}
@@ -83,7 +83,7 @@ unsigned
t11 (signed char input)
{
unsigned output;
-__asm__ ("xyz": "=a" (output):"0" (input));
+__asm__ ("nop": "=a" (output):"0" (input));
return output;
}
@@ -92,7 +92,7 @@ unsigned char
t12 (unsigned input)
{
unsigned char output;
-__asm__ ("xyz": "=a" (output):"0" (input));
+__asm__ ("nop": "=a" (output):"0" (input));
return output;
}
@@ -100,7 +100,7 @@ unsigned char
t13 (unsigned input)
{
unsigned char output;
-__asm__ ("xyz %1": "=a" (output):"0" (input));
+__asm__ ("nop": "=a" (output):"0" (input));
return output;
}
@@ -112,6 +112,6 @@ struct large
unsigned long
t15 (int x, struct large *P)
{
-__asm__ ("xyz ": "=r" (x):"m" (*P), "0" (x));
+__asm__ ("nop ": "=r" (x):"m" (*P), "0" (x));
return x;
}
More information about the llvm-commits
mailing list