Skip to content

Instantly share code, notes, and snippets.

@fqj1994
Last active August 29, 2015 14:21
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 fqj1994/d8a05058e7ccbe2968bc to your computer and use it in GitHub Desktop.
Save fqj1994/d8a05058e7ccbe2968bc to your computer and use it in GitHub Desktop.
test.s
# mark_description "Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.0.080 Build 2013072";
# mark_description "8";
# mark_description "-S";
.file "test.c"
.text
..TXTST0:
# -- Begin main
# mark_begin;
.align 16,0x90
.globl main
main:
..B1.1: # Preds ..B1.0
..___tag_value_main.1: #5.12
pushq %rbp #5.12
..___tag_value_main.3: #
movq %rsp, %rbp #5.12
..___tag_value_main.4: #
andq $-128, %rsp #5.12
subq $128, %rsp #5.12
movq $0x000000000, %rsi #5.12
movl $3, %edi #5.12
call __intel_new_feature_proc_init #5.12
# LOE rbx r12 r13 r14 r15
..B1.5: # Preds ..B1.1
stmxcsr (%rsp) #5.12
movl $.L_2__STRING.0, %edi #5.14
movl $1, %eax #5.14
orl $32832, (%rsp) #5.12
ldmxcsr (%rsp) #5.12
pxor %xmm0, %xmm0 #5.14
..___tag_value_main.6: #5.14
call printf #5.14
..___tag_value_main.7: #
# LOE rbx r12 r13 r14 r15
..B1.2: # Preds ..B1.5
xorl %eax, %eax #5.46
movq %rbp, %rsp #5.46
popq %rbp #5.46
..___tag_value_main.8: #
ret #5.46
.align 16,0x90
..___tag_value_main.10: #
# LOE
# mark_end;
.type main,@function
.size main,.-main
.data
# -- End main
.text
# -- Begin acos
# mark_begin;
.align 16,0x90
.globl acos
acos:
# parameter 1: %xmm0
..B2.1: # Preds ..B2.0
..___tag_value_acos.11: #4.23
pxor %xmm0, %xmm0 #4.32
ret #4.32
.align 16,0x90
..___tag_value_acos.13: #
# LOE
# mark_end;
.type acos,@function
.size acos,.-acos
.data
# -- End acos
.section .rodata.str1.4, "aMS",@progbits,1
.align 4
.align 4
.L_2__STRING.0:
.long 681509
.type .L_2__STRING.0,@object
.size .L_2__STRING.0,4
.data
.section .note.GNU-stack, ""
// -- Begin DWARF2 SEGMENT .eh_frame
.section .eh_frame,"a",@progbits
.eh_frame_seg:
.align 8
.4byte 0x00000014
.8byte 0x7801000100000000
.8byte 0x0000019008070c10
.4byte 0x00000000
.4byte 0x00000034
.4byte 0x0000001c
.8byte ..___tag_value_main.1
.8byte ..___tag_value_main.10-..___tag_value_main.1
.byte 0x04
.4byte ..___tag_value_main.3-..___tag_value_main.1
.2byte 0x100e
.byte 0x04
.4byte ..___tag_value_main.4-..___tag_value_main.3
.4byte 0x8610060c
.2byte 0x0402
.4byte ..___tag_value_main.8-..___tag_value_main.4
.8byte 0x00000000c608070c
.2byte 0x0000
.4byte 0x00000014
.4byte 0x00000054
.8byte ..___tag_value_acos.11
.8byte ..___tag_value_acos.13-..___tag_value_acos.11
# End
#include <math.h>
#include <stdio.h>
double acos(double x) { return 0; }
int main() { printf("%f\n", acos(0)); return 0; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment