From e0ca6e25d16bbc8e284a58cd700a6ed63f1eab6a Mon Sep 17 00:00:00 2001 From: Dongliang Mu Date: Fri, 7 Apr 2017 22:12:03 -0400 Subject: [PATCH] keep asm.md sync with upstream commit id - a9e59b54f004b97a153cfe11db3ee913ddcb565c --- Theory/asm.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Theory/asm.md b/Theory/asm.md index d0c3220..8a691db 100644 --- a/Theory/asm.md +++ b/Theory/asm.md @@ -309,7 +309,7 @@ a = 100 Or for example `I` which represents an immediate 32-bit integer. The difference between `i` and `I` is that `i` is general, whereas `I` is strictly specified to 32-bit integer data. For example if you try to compile the following ```C -int test_asm(int nr) +unsigned long test_asm(int nr) { unsigned long a = 0; @@ -332,7 +332,7 @@ test.c:7:9: error: impossible constraint in ‘asm’ when at the same time ```C -int test_asm(int nr) +unsigned long test_asm(int nr) { unsigned long a = 0; @@ -360,7 +360,7 @@ int main(void) static unsigned long element; __asm__ volatile("movq 16+%1, %0" : "=r"(element) : "o"(arr)); - printf("%d\n", element); + printf("%lu\n", element); return 0; } ```