|
From: <sv...@va...> - 2012-10-15 14:20:57
|
cborntra 2012-10-15 15:20:46 +0100 (Mon, 15 Oct 2012)
New Revision: 13045
Log:
make use of opcodes.h. The is part of extended immediate facility
Modified files:
trunk/memcheck/tests/s390x/ltgjhe.c
Modified: trunk/memcheck/tests/s390x/ltgjhe.c (+6 -3)
===================================================================
--- trunk/memcheck/tests/s390x/ltgjhe.c 2012-10-15 15:01:31 +01:00 (rev 13044)
+++ trunk/memcheck/tests/s390x/ltgjhe.c 2012-10-15 15:20:46 +01:00 (rev 13045)
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include "../../../none/tests/s390x/opcodes.h"
int main()
{
int field1, field2;
@@ -6,12 +7,13 @@
/*
* gcc does some tricks for checking the highest bit. It seems
- * to load a full word/double word.
+ * to load a full word/double word.
* By using mask=10 for brc (jhe) only the msb is influencing
* the code flow. This test was inspired by 308427
*/
asm volatile( "oi %1,128\n\t"
- "ltg 0,%1\n\t"
+ "la 1,%1\n\t"
+ LTG(0,0,1,000,00)
"jhe 1f\n\t"
"lghi %0,0\n\t"
"j 2f\n\t"
@@ -25,7 +27,8 @@
printf("Error\n");
asm volatile( "oi %1,128\n\t"
- "lt 0,%1\n\t"
+ "la 1,%1\n\t"
+ LT(0,0,1,000,00)
"jhe 1f\n\t"
"lghi %0,0\n\t"
"j 2f\n\t"
|