Skip to content

Instantly share code, notes, and snippets.

@TimNN
Created October 21, 2018 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimNN/501819422631149c3ab2b8cc0b15c98d to your computer and use it in GitHub Desktop.
Save TimNN/501819422631149c3ab2b8cc0b15c98d to your computer and use it in GitHub Desktop.
target triple = "avr-unknown-unknown"
define void @"main"() addrspace(1) {
start:
%0 = or i64 undef, undef
br i1 undef, label %mul_and_call, label %fail
mul_and_call:
%1 = mul i64 %0, %0
call addrspace(1) void @"three_ints"(i64 undef, i64 %1, i64 %0)
ret void
fail:
ret void
}
declare void @"three_ints"(i64, i64, i64) addrspace(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment