Skip to content

Instantly share code, notes, and snippets.

@phire
Created August 1, 2013 01:12
Show Gist options
  • Save phire/6127686 to your computer and use it in GitHub Desktop.
Save phire/6127686 to your computer and use it in GitHub Desktop.
llvm based assembler WIP
phire@osiris:~/projects/llvm/build$ ./bin/llvm-mc ch3.s -arch=videocore
.text
.file "ch3.ll"
.globl main
.align 4
.type main,@function
main:
ch3.s:8:6: error: invalid operand for instruction
mov r0, 3
^
ch3.s:9:11: error: unexpected token in argument list
st r0, -4(sp)
^
ch3.s:10:2: error: invalid instruction
blr
^
.tmp0:
.size main, .tmp0-main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment