1 ;Testname=test; Arguments=-fbin -outf.bin; Files=stdout stderr utf.bin
2 ;Testname=error; Arguments=-fbin -outf.bin -DERROR; Files=stdout stderr utf.bin
3 %define u
(x
) __utf16__
(x
)
4 %define w
(x
) __utf32__
(x
)
5 %define ul
(x
) __utf16le__
(x
)
6 %define wl
(x
) __utf32le__
(x
)
7 %define ub
(x
) __utf16be__
(x
)
8 %define wb
(x
) __utf32be__
(x
)
10 db `
Test \u306a\U0001abcd
\n`
11 dw u
(`
Test \u306a\U0001abcd
\n`
)
12 dd w
(`
Test \u306a\U0001abcd
\n`
)
17 dw __utf16__
"Hello, World!"
23 mov cx,u
(`
\xe3\x81\xaa`
)
25 mov ebx,u
(`\U0001abcd`
)
26 mov ecx,w
(`\U0001abcd`
)
28 db `
Test \u306a\U0001abcd
\n`
29 dw ul
(`
Test \u306a\U0001abcd
\n`
)
30 dd wl
(`
Test \u306a\U0001abcd
\n`
)
35 dw __utf16le__
"Hello, World!"
41 mov cx,ul
(`
\xe3\x81\xaa`
)
43 mov ebx,ul
(`\U0001abcd`
)
44 mov ecx,wl
(`\U0001abcd`
)
46 db `
Test \u306a\U0001abcd
\n`
47 dw ub
(`
Test \u306a\U0001abcd
\n`
)
48 dd wb
(`
Test \u306a\U0001abcd
\n`
)
53 dw __utf16be__
"Hello, World!"
59 mov cx,ub
(`
\xe3\x81\xaa`
)
61 mov ebx,ub
(`\U0001abcd`
)
62 mov ecx,wb
(`\U0001abcd`
)
67 dw __utf16__
("Hello, World!",16)
68 dw __utf16__
("Hello, World!",16
73 dw __utf16le__
("Hello, World!",16)
74 dw __utf16le__
("Hello, World!",16
79 dw __utf16be__
("Hello, World!",16)
80 dw __utf16be__
("Hello, World!",16