Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // volatile const
- unsigned int ld16(volatile const unsigned short int *p)
- {
- return *p;
- }
- .file "test6.c"
- .section .text
- .align 2
- .global ld16
- .type ld16, @function
- ld16:
- ldhu r2, 0(r4) # 6 [c=8 l=4] zero_extendhisi2/1
- andi r2, r2, 0xffff # 12 [c=4 l=4] zero_extendhisi2/0
- ret # 19 [c=0 l=4] simple_return
- .size ld16, .-ld16
- .ident "GCC: (GNU) 9.2.1 20191009"
- // const
- unsigned int ld16(const unsigned short int *p)
- {
- return *p;
- }
- .file "test6.c"
- .section .text
- .align 2
- .global ld16
- .type ld16, @function
- ld16:
- ldhu r2, 0(r4) # 11 [c=8 l=4] zero_extendhisi2/1
- ret # 18 [c=0 l=4] simple_return
- .size ld16, .-ld16
- .ident "GCC: (GNU) 9.2.1 20191009"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement