llvm-project/lld/test/core/code-model-attributes.objtxt

51 lines
1.2 KiB
Plaintext

# RUN: lld -core %s | FileCheck %s
#
# Test that code model attributes are preserved
#
---
defined-atoms:
- name: _def
---
defined-atoms:
- name: _none
code-model: none
---
defined-atoms:
- name: _mips_pic
code-model: mips-pic
---
defined-atoms:
- name: _mips_micro
code-model: mips-micro
---
defined-atoms:
- name: _mips_micro_pic
code-model: mips-micro-pic
---
defined-atoms:
- name: _mips_16
code-model: mips-16
...
# CHECK: name: _def
# CHECK-NOT: code-model: mips-pic
# CHECK-NOT: code-model: mips-micro
# CHECK-NOT: code-model: mips-micro-pic
# CHECK-NOT: code-model: mips-16
# CHECK: name: _none
# CHECK-NOT: code-model: mips-pic
# CHECK-NOT: code-model: mips-micro
# CHECK-NOT: code-model: mips-micro-pic
# CHECK-NOT: code-model: mips-16
# CHECK: name: _mips_pic
# CHECK: code-model: mips-pic
# CHECK: name: _mips_micro
# CHECK: code-model: mips-micro
# CHECK: name: _mips_micro_pic
# CHECK: code-model: mips-micro-pic
# CHECK: name: _mips_16
# CHECK: code-model: mips-16
# CHECK: ...