diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/builtin-expect.c | 4 | ||||
-rw-r--r-- | test/builtin-expect.qbe | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/builtin-expect.c b/test/builtin-expect.c new file mode 100644 index 0000000..aac5ede --- /dev/null +++ b/test/builtin-expect.c @@ -0,0 +1,4 @@ +int x; +int main(void) { + return __builtin_expect(x, 0); +} diff --git a/test/builtin-expect.qbe b/test/builtin-expect.qbe new file mode 100644 index 0000000..73e3b42 --- /dev/null +++ b/test/builtin-expect.qbe @@ -0,0 +1,8 @@ +export +function w $main() { +@start.1 +@body.2 + %.1 =w loadsw $x + ret %.1 +} +export data $x = align 4 { z 4 } |