diff options
| author | gus knight <waddlesplash@gmail.com> | 2015-07-29 09:54:03 -0400 |
|---|---|---|
| committer | gus knight <waddlesplash@gmail.com> | 2015-07-29 09:59:11 -0400 |
| commit | 7f5b95ea321086c8dff91b462dc80af03caa657e (patch) | |
| tree | 5d47932ad305692475eec12ecbd703da240baa08 /src/x86 | |
| parent | 271abe711798868717e3a6b046eab2bab8920016 (diff) | |
| download | tinycc-7f5b95ea321086c8dff91b462dc80af03caa657e.tar.gz tinycc-7f5b95ea321086c8dff91b462dc80af03caa657e.tar.bz2 | |
Fix formatting breakage from "rogue tabs" commit.
Diffstat (limited to 'src/x86')
| -rw-r--r-- | src/x86/x86_64-gen.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/x86/x86_64-gen.c b/src/x86/x86_64-gen.c index 0ce5846..ab2eb6a 100644 --- a/src/x86/x86_64-gen.c +++ b/src/x86/x86_64-gen.c @@ -618,7 +618,7 @@ static void gcall_or_jmp(int is_jmp) { int r; if ((vtop->r & (VT_VALMASK | VT_LVAL)) == VT_CONST && - ((vtop->r & VT_SYM) || (vtop->c.ll-4) == (int)(vtop->c.ll-4))) { + ((vtop->r & VT_SYM) || (vtop->c.ll-4) == (int)(vtop->c.ll-4))) { /* constant case */ if (vtop->r & VT_SYM) { /* relocation case */ @@ -1806,7 +1806,7 @@ int gtst(int inv, int t) if (v == VT_CMP) { /* fast case : can jump directly since flags are set */ if (vtop->c.i & 0x100) - { + { /* This was a float compare. If the parity flag is set the result was unordered. For anything except != this means false and we don't jump (anding both conditions). @@ -1816,13 +1816,12 @@ int gtst(int inv, int t) otherwise if unordered we don't want to jump. */ vtop->c.i &= ~0x100; if (!inv == (vtop->c.i != TOK_NE)) - o(0x067a); /* jp +6 */ - else - { + o(0x067a); /* jp +6 */ + else { g(0x0f); t = psym(0x8a, t); /* jp t */ - } - } + } + } g(0x0f); t = psym((vtop->c.i - 16) ^ inv, t); } else if (v == VT_JMP || v == VT_JMPI) { |
