Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arg_char test result need input args (x86_64(clang), aarch64(gcc, clang)) #1580

Open
paranlee opened this issue Sep 12, 2022 · 1 comment
Open
Labels

Comments

@paranlee
Copy link
Contributor

x86_64

062 arg_char            : OK OK OK OK OK  OK NG NG NG NG
~/uftrace/tests$ ./runtest.py -vdp 062
Start 1 tests without worker pool
Compiler                  gcc             clang         
Test case                 pg              pg            
------------------------: O0 O1 O2 O3 Os  O0 O1 O2 O3 Os
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O0  s-exp-char.c   
test command: /home/paran/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paran/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   0.915 us [ 47302] | __monstartup();
   0.349 us [ 47302] | __cxa_atexit();
            [ 47302] | main() {
   1.413 us [ 47302] |   foo('f', 'o', 'o');
   0.272 us [ 47302] |   bar('\0', 'B', 97, 0x72);
   2.355 us [ 47302] | } /* main */

===========  result  ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O1  s-exp-char.c   
test command: /home/paran/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paran/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   0.703 us [ 47312] | __monstartup();
   0.427 us [ 47312] | __cxa_atexit();
            [ 47312] | main() {
   1.109 us [ 47312] |   foo('f', 'o', 'o');
   0.315 us [ 47312] |   bar('\0', 'B', 97, 0x72);
   2.207 us [ 47312] | } /* main */

===========  result  ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O2  s-exp-char.c   
test command: /home/paran/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paran/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   0.734 us [ 47322] | __monstartup();
   0.274 us [ 47322] | __cxa_atexit();
            [ 47322] | main() {
   0.999 us [ 47322] |   foo('f', 'o', 'o');
   0.288 us [ 47322] |   bar('\0', 'B', 97, 0x72);
   2.056 us [ 47322] | } /* main */

===========  result  ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O3  s-exp-char.c   
test command: /home/paran/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paran/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   0.599 us [ 47332] | __monstartup();
   0.218 us [ 47332] | __cxa_atexit();
            [ 47332] | main() {
   1.134 us [ 47332] |   foo('f', 'o', 'o');
   0.260 us [ 47332] |   bar('\0', 'B', 97, 0x72);
   2.020 us [ 47332] | } /* main */

===========  result  ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -Os  s-exp-char.c   
test command: /home/paran/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paran/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   0.519 us [ 47342] | __monstartup();
   0.165 us [ 47342] | __cxa_atexit();
            [ 47342] | main() {
   0.933 us [ 47342] |   foo('f', 'o', 'o');
   0.262 us [ 47342] |   bar('\0', 'B', 97, 0x72);
   1.756 us [ 47342] | } /* main */

===========  result  ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: clang -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O0  s-exp-char.c   
test command: /home/paran/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paran/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   0.977 us [ 47350] | __monstartup();
   0.476 us [ 47350] | __cxa_atexit();
            [ 47350] | main() {
   0.861 us [ 47350] |   foo('f', 'o', 'o');
   0.199 us [ 47350] |   bar('\0', 'B', 97, 0x72);
   1.614 us [ 47350] | } /* main */

===========  result  ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: clang -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O1  s-exp-char.c   
test command: /home/paran/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paran/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   1.710 us [ 47358] | __monstartup();
   0.772 us [ 47358] | __cxa_atexit();
   0.121 us [ 47358] | main();

===========  result  ===========
main();
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: clang -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O2  s-exp-char.c   
test command: /home/paran/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paran/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   1.394 us [ 47368] | __monstartup();
   0.859 us [ 47368] | __cxa_atexit();
   0.131 us [ 47368] | main();

===========  result  ===========
main();
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: clang -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O3  s-exp-char.c   
test command: /home/paran/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paran/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   0.892 us [ 47378] | __monstartup();
   0.827 us [ 47378] | __cxa_atexit();
   0.091 us [ 47378] | main();

===========  result  ===========
main();
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: clang -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -Os  s-exp-char.c   
test command: /home/paran/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paran/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   1.427 us [ 47388] | __monstartup();
   0.454 us [ 47388] | __cxa_atexit();
   0.097 us [ 47388] | main();

===========  result  ===========
main();
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
t062_arg_char: diff result of -pg -O1
--- expect      2022-09-12 01:56:58.953827255 -0700
+++ result      2022-09-12 01:56:58.953827255 -0700
@@ -1,4 +1 @@
-main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
- } /* main */
+main();

t062_arg_char: diff result of -pg -O2
--- expect      2022-09-12 01:56:59.065829237 -0700
+++ result      2022-09-12 01:56:59.065829237 -0700
@@ -1,4 +1 @@
-main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
- } /* main */
+main();

t062_arg_char: diff result of -pg -O3
--- expect      2022-09-12 01:56:59.169831079 -0700
+++ result      2022-09-12 01:56:59.169831079 -0700
@@ -1,4 +1 @@
-main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
- } /* main */
+main();

t062_arg_char: diff result of -pg -Os
--- expect      2022-09-12 01:56:59.281833061 -0700
+++ result      2022-09-12 01:56:59.281833061 -0700
@@ -1,4 +1 @@
-main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
- } /* main */
+main();

062 arg_char            : OK OK OK OK OK  OK NG NG NG NG

aarch64

062 arg_char            : NG NG NG NG NG  OK NG NG NG NG
~/uftrace/tests$ ./runtest.py -vdp 062
Start 1 tests without worker pool
Compiler                  gcc             clang
Test case                 pg              pg
------------------------: O0 O1 O2 O3 Os  O0 O1 O2 O3 Os
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O0  s-exp-char.c

test command: /home/paranlee/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paranlee/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   2.241 us [330525] | __monstartup();
   0.241 us [330525] | __cxa_atexit();
            [330525] | main() {
   3.315 us [330525] |   foo('', 'o', 'o');
   0.778 us [330525] |   bar('', 'B', 97, 0x72);
   5.556 us [330525] | } /* main */

===========  result  ===========
main() {
   foo('', 'o', 'o');
   bar('', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O1  s-exp-char.c

test command: /home/paranlee/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paranlee/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   2.093 us [330536] | __monstartup();
   0.222 us [330536] | __cxa_atexit();
            [330536] | main() {
   3.037 us [330536] |   foo('\', 'o', 'o');
   0.815 us [330536] |   bar('t', 'B', 97, 0x72);
   5.167 us [330536] | } /* main */

===========  result  ===========
main() {
   foo('\', 'o', 'o');
   bar('t', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O2  s-exp-char.c

test command: /home/paranlee/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paranlee/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   2.463 us [330547] | __monstartup();
   0.222 us [330547] | __cxa_atexit();
            [330547] | main() {
   3.037 us [330547] |   foo('', 'o', 'o');
   0.982 us [330547] |   bar('', 'B', 97, 0x72);
   5.445 us [330547] | } /* main */

===========  result  ===========
main() {
   foo('', 'o', 'o');
   bar('', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O3  s-exp-char.c

test command: /home/paranlee/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paranlee/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   1.685 us [330558] | __monstartup();
   0.204 us [330558] | __cxa_atexit();
            [330558] | main() {
   3.204 us [330558] |   foo('', 'o', 'o');
   0.797 us [330558] |   bar('', 'B', 97, 0x72);
   5.556 us [330558] | } /* main */

===========  result  ===========
main() {
   foo('', 'o', 'o');
   bar('', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -Os  s-exp-char.c

test command: /home/paranlee/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paranlee/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   1.926 us [330569] | __monstartup();
   0.204 us [330569] | __cxa_atexit();
            [330569] | main() {
   2.926 us [330569] |   foo('', 'o', 'o');
   1.074 us [330569] |   bar('', 'B', 97, 0x72);
   5.630 us [330569] | } /* main */

===========  result  ===========
main() {
   foo('', 'o', 'o');
   bar('', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: clang -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O0  s-exp-char.c
test command: /home/paranlee/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paranlee/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   2.648 us [330580] | __monstartup();
   0.982 us [330580] | __cxa_atexit();
            [330580] | main() {
   3.148 us [330580] |   foo('f', 'o', 'o');
   0.926 us [330580] |   bar('\0', 'B', 97, 0x72);
   5.370 us [330580] | } /* main */

===========  result  ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: clang -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O1  s-exp-char.c
test command: /home/paranlee/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paranlee/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   2.889 us [330587] | __monstartup();
   1.037 us [330587] | __cxa_atexit();
   1.018 us [330587] | main();

===========  result  ===========
main();
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: clang -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O2  s-exp-char.c
test command: /home/paranlee/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paranlee/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   2.426 us [330597] | __monstartup();
   0.889 us [330597] | __cxa_atexit();
   0.666 us [330597] | main();

===========  result  ===========
main();
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: clang -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O3  s-exp-char.c
test command: /home/paranlee/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paranlee/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   2.260 us [330606] | __monstartup();
   1.018 us [330606] | __cxa_atexit();
   0.685 us [330606] | main();

===========  result  ===========
main();
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
build command: clang -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -Os  s-exp-char.c
test command: /home/paranlee/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/paranlee/uftrace -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" t-exp-char
=========== original ===========
# DURATION     TID     FUNCTION
   2.815 us [330615] | __monstartup();
   1.037 us [330615] | __cxa_atexit();
   0.629 us [330615] | main();

===========  result  ===========
main();
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
t062_arg_char: diff result of -pg -O0
--- expect      2022-09-12 17:55:13.668386159 +0900
+++ result      2022-09-12 17:55:13.668386159 +0900
@@ -1,4 +1,4 @@
 main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
+   foo('', 'o', 'o');
+   bar('', 'B', 97, 0x72);
  } /* main */

t062_arg_char: diff result of -pg -O1
--- expect      2022-09-12 17:55:14.156383069 +0900
+++ result      2022-09-12 17:55:14.156383069 +0900
@@ -1,4 +1,4 @@
 main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
+   foo('\', 'o', 'o');
+   bar('t', 'B', 97, 0x72);
  } /* main */

t062_arg_char: diff result of -pg -O2
--- expect      2022-09-12 17:55:14.648379955 +0900
+++ result      2022-09-12 17:55:14.648379955 +0900
@@ -1,4 +1,4 @@
 main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
+   foo('', 'o', 'o');
+   bar('', 'B', 97, 0x72);
  } /* main */

t062_arg_char: diff result of -pg -O3
--- expect      2022-09-12 17:55:15.144376815 +0900
+++ result      2022-09-12 17:55:15.144376815 +0900
@@ -1,4 +1,4 @@
 main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
+   foo('', 'o', 'o');
+   bar('', 'B', 97, 0x72);
  } /* main */

t062_arg_char: diff result of -pg -Os
--- expect      2022-09-12 17:55:15.640373676 +0900
+++ result      2022-09-12 17:55:15.640373676 +0900
@@ -1,4 +1,4 @@
 main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
+   foo('', 'o', 'o');
+   bar('', 'B', 97, 0x72);
  } /* main */

t062_arg_char: diff result of -pg -O1
--- expect      2022-09-12 17:55:16.788366411 +0900
+++ result      2022-09-12 17:55:16.788366411 +0900
@@ -1,4 +1 @@
-main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
- } /* main */
+main();

t062_arg_char: diff result of -pg -O2
--- expect      2022-09-12 17:55:17.388362615 +0900
+++ result      2022-09-12 17:55:17.388362615 +0900
@@ -1,4 +1 @@
-main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
- } /* main */
+main();

t062_arg_char: diff result of -pg -O3
--- expect      2022-09-12 17:55:17.960358996 +0900
+++ result      2022-09-12 17:55:17.960358996 +0900
@@ -1,4 +1 @@
-main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
- } /* main */
+main();

t062_arg_char: diff result of -pg -Os
--- expect      2022-09-12 17:55:18.544355303 +0900
+++ result      2022-09-12 17:55:18.544355303 +0900
@@ -1,4 +1 @@
-main() {
-   foo('f', 'o', 'o');
-   bar('\0', 'B', 97, 0x72);
- } /* main */
+main();

062 arg_char            : NG NG NG NG NG  OK NG NG NG NG
@uibeom0210
Copy link

Hello.
For x86_64, I ran the arg_char test and got the correct result for both gcc and clang. I also checked GitHub's nightly test and didn't see any issues with the arg_char test. Therefore, I don't think input args for x86_64 (clang) are necessary.
This test was run on Ubuntu 20.04.

~/ossca/uftrace/tests$ ./runtest.py -vdp 062
Start 1 tests without worker pool

Compiler                  gcc             clang         
Runtime test case         pg              pg            
------------------------: O0 O1 O2 O3 Os  O0 O1 O2 O3 Os
build command: gcc -o t-exp-char -fno-inline -fno-builtin -fno-ipa-cp -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0  -pg -O0 -fno-ipa-sra  s-exp-char.c   
test command: /home/uibeom2004/ossca/uftrace/uftrace live --no-pager --no-event --libmcount-path=/home/uibeom2004/ossca/uftrace  -A "foo@arg1/c,arg2/c,arg3/c" -A "bar@arg1/c,arg2/c,arg3/i,arg4/x8" -N memcpy t-exp-char

...

===========  result  ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
=========== expected ===========
main() {
   foo('f', 'o', 'o');
   bar('\0', 'B', 97, 0x72);
 } /* main */
062 arg_char            : OK OK OK OK OK  OK OK OK OK OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants