mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
21 lines
486 B
Plaintext
21 lines
486 B
Plaintext
// #target: macos-x64
|
|
module test;
|
|
|
|
fn void test()
|
|
{
|
|
asm { nop; }
|
|
asm @pure { nop; }
|
|
asm("nop");
|
|
asm("nop") @pure;
|
|
}
|
|
|
|
/* #expect: test.ll
|
|
|
|
define void @test.test() #0 {
|
|
entry:
|
|
call void asm sideeffect alignstack "nop \0A", "~{flags},~{dirflag},~{fspr}"()
|
|
call void asm alignstack "nop \0A", "~{flags},~{dirflag},~{fspr}"()
|
|
call void asm sideeffect alignstack "nop", "~{dirflag},~{fpsr},~{flags}"()
|
|
call void asm alignstack "nop", "~{dirflag},~{fpsr},~{flags}"()
|
|
ret void
|
|
} |