add more printf tests
authorAndreas Beckmann <anbe@debian.org>
Mon, 4 Feb 2019 23:39:59 +0000 (23:39 +0000)
committerAndreas Beckmann <anbe@debian.org>
Mon, 4 Feb 2019 23:39:59 +0000 (23:39 +0000)
Gbp-Pq: Name more-printf-tests.patch

tests/kernel/test_printf.cl
tests/kernel/test_printf_expout.txt

index 87ae0128fc0905adbea06e303fc6f6fafb07a71a..07999772338498934ae1ffad2a99c6265bf44993 100644 (file)
@@ -179,4 +179,9 @@ kernel void test_printf()
   printf("|%s|%4s|%-4s|%4s|%.4s|\n", "aa", "bb", "cc", "dddddddddd", "eeeeee");
   printf("|%p|%12p|%-12p|\n", (void*)0x2349aacc, (void*)0xdeaddeed, (void*)0x92820384);
 
+  printf ("\nPARAMETER PASSING\n\n");
+
+  printf("%c %#v2hhx %#v2hhx %c\n", '*', (char2)(0xFA, 0xFB), (char2)(0xFC, 0xFD), '.');
+  printf("%c %#v2hx %#v2hx %c\n", '*', (short2)(0x1234, 0x8765), (short2)(0xBEEF, 0xF00D), '.');
+  printf("%c %#v2hlx %#v2hlx %c\n", '*', (int2)(0x12345678, 0x87654321), (int2)(0x2468ACE0, 0xFDB97531), '.');
 }
index 959f8003ca1629f471cb72175b6bd48a5278b580..81937eb480dec1f63b33a3468a5db6537dc2c1eb 100644 (file)
@@ -151,4 +151,10 @@ VECTORS
 |a|   b|c   |
 |aa|  bb|cc  |dddddddddd|eeee|
 |0x2349aacc|  0xdeaddeed|0x92820384  |
+
+PARAMETER PASSING
+
+* 0xfa,0xfb 0xfc,0xfd .
+* 0x1234,0x8765 0xbeef,0xf00d .
+* 0x12345678,0x87654321 0x2468ace0,0xfdb97531 .
 OK