Revision 5fafdf24 tests/test-i386-muldiv.h

b/tests/test-i386-muldiv.h
1 1

  
2
void glue(glue(test_, OP), b)(long op0, long op1) 
2
void glue(glue(test_, OP), b)(long op0, long op1)
3 3
{
4 4
    long res, s1, s0, flags;
5 5
    s0 = op0;
......
8 8
    flags = 0;
9 9
    asm ("push %4\n\t"
10 10
         "popf\n\t"
11
         stringify(OP)"b %b2\n\t" 
11
         stringify(OP)"b %b2\n\t"
12 12
         "pushf\n\t"
13 13
         "pop %1\n\t"
14 14
         : "=a" (res), "=g" (flags)
......
17 17
           stringify(OP) "b", s0, s1, res, flags & CC_MASK);
18 18
}
19 19

  
20
void glue(glue(test_, OP), w)(long op0h, long op0, long op1) 
20
void glue(glue(test_, OP), w)(long op0h, long op0, long op1)
21 21
{
22 22
    long res, s1, flags, resh;
23 23
    s1 = op1;
......
26 26
    flags = 0;
27 27
    asm ("push %5\n\t"
28 28
         "popf\n\t"
29
         stringify(OP) "w %w3\n\t" 
29
         stringify(OP) "w %w3\n\t"
30 30
         "pushf\n\t"
31 31
         "pop %1\n\t"
32 32
         : "=a" (res), "=g" (flags), "=d" (resh)
......
35 35
           stringify(OP) "w", op0h, op0, s1, resh, res, flags & CC_MASK);
36 36
}
37 37

  
38
void glue(glue(test_, OP), l)(long op0h, long op0, long op1) 
38
void glue(glue(test_, OP), l)(long op0h, long op0, long op1)
39 39
{
40 40
    long res, s1, flags, resh;
41 41
    s1 = op1;
......
44 44
    flags = 0;
45 45
    asm ("push %5\n\t"
46 46
         "popf\n\t"
47
         stringify(OP) "l %k3\n\t" 
47
         stringify(OP) "l %k3\n\t"
48 48
         "pushf\n\t"
49 49
         "pop %1\n\t"
50 50
         : "=a" (res), "=g" (flags), "=d" (resh)
......
54 54
}
55 55

  
56 56
#if defined(__x86_64__)
57
void glue(glue(test_, OP), q)(long op0h, long op0, long op1) 
57
void glue(glue(test_, OP), q)(long op0h, long op0, long op1)
58 58
{
59 59
    long res, s1, flags, resh;
60 60
    s1 = op1;
......
63 63
    flags = 0;
64 64
    asm ("push %5\n\t"
65 65
         "popf\n\t"
66
         stringify(OP) "q %3\n\t" 
66
         stringify(OP) "q %3\n\t"
67 67
         "pushf\n\t"
68 68
         "pop %1\n\t"
69 69
         : "=a" (res), "=g" (flags), "=d" (resh)

Also available in: Unified diff