This repository has been archived by the owner on May 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate object for disasm_options_test from asm
The test should not depend on changes in codegen, as it is only testing the disassembler. Change-Id: Id89a45975bcb8fe41af8369095ed2842bfc71f1d
- Loading branch information
Showing
3 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.text | ||
.file "reloc-asm.c" | ||
.globl foo | ||
.p2align 4, 0x90 | ||
.type foo,@function | ||
foo: | ||
s_load_dwordx2 s[0:1], s[4:5], 0x0 // 000000000000: C0060002 00000000 | ||
v_mov_b32_e32 v2, 42 // 000000000008: 7E0402AA | ||
s_waitcnt lgkmcnt(0) // 00000000000C: BF8C007F | ||
v_mov_b32_e32 v0, s0 // 000000000010: 7E000200 | ||
v_mov_b32_e32 v1, s1 // 000000000014: 7E020201 | ||
flat_store_dword v[0:1], v2 // 000000000018: DC700000 00000200 | ||
s_endpgm | ||
.Lfunc_end0: | ||
.size foo, .Lfunc_end0-foo | ||
|
||
.ident "clang" | ||
.section ".note.GNU-stack","",@progbits | ||
.addrsig |