clang/test/CodeGen/SystemZ/mbackchain-4.c
raw| 1 | // REQUIRES: systemz-registered-target |
| 2 | // RUN: %clang --target=s390x-linux -O1 -S -o - %s | FileCheck %s |
| 3 | |
| 4 | __attribute__((target("backchain"))) |
| 5 | void *foo(void) { |
| 6 | return __builtin_return_address(1); |
| 7 | } |
| 8 | |
| 9 | // CHECK-LABEL: foo: |
| 10 | // CHECK: lg %r1, 0(%r15) |
| 11 | // CHECK: lg %r2, 112(%r1) |
| 12 | // CHECK: br %r14 |