Changeset 86d55e66
- Timestamp:
- Nov 12, 2020, 2:44:39 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 0df64de
- Parents:
- 172dba9c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/references.cfa
r172dba9c r86d55e66 124 124 int *p = &a; 125 125 asm ( 126 "incl %[p]\n\t" 127 : [p] "+m" (*p) 126 #if defined( __i386 ) || defined( __x86_64 ) 127 "incl %[p]\n\t" 128 : [p] "+m" (*p) 129 #elif defined( __aarch64__ ) 130 "ldr w1, %[p]\n\t" 131 "add w1, w1, 1\n\t" 132 "str w1, %[p]\n\t" 133 : [p] "+m" (*p) ::"w1" 134 #endif 128 135 ); 129 136 printf("%d\n", a);
Note: See TracChangeset
for help on using the changeset viewer.