summaryrefslogtreecommitdiff
path: root/deps/gyp/test/assembly/src/lib1.S
blob: 7de9f19cf97383fccc05dca2a51236cf177b2d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#if PLATFORM_WINDOWS || PLATFORM_MAC
# define IDENTIFIER(n)  _##n
#else /* Linux */
# define IDENTIFIER(n)  n
#endif

.globl IDENTIFIER(lib1_function)
IDENTIFIER(lib1_function):
#if !defined(PLATFORM_ANDROID)
  movl $42, %eax
  ret
#else /* Android (assuming ARM) */
  mov r0, #42
  bx lr
#endif