diff --git a/gcc/testsuite/c-c++-common/gomp/unroll-4.c b/gcc/testsuite/c-c++-common/gomp/unroll-4.c
index 65c51cc0e5012f80816e2e453e62fdb7e58a725d..47bdbbc8300f54474a66cdc326566a0e679dd6cb 100644
--- a/gcc/testsuite/c-c++-common/gomp/unroll-4.c
+++ b/gcc/testsuite/c-c++-common/gomp/unroll-4.c
@@ -15,4 +15,4 @@ test1 (void)
 /* { dg-final { scan-tree-dump "#pragma omp unroll" "original" } } */
 /* { dg-final { scan-tree-dump-not "#pragma omp" "gimple" } } */
 /* { dg-final { scan-tree-dump-times "dummy" 1 "gimple" } } */
-/* { dg-final { scan-assembler-times "dummy" 8 } } */
+/* { dg-final { scan-assembler-times "dummy" 8 { xfail hppa*-*-hpux* } } } */
diff --git a/gcc/testsuite/c-c++-common/gomp/unroll-5.c b/gcc/testsuite/c-c++-common/gomp/unroll-5.c
index 415d42136a7e0e15f5e59cbfc592429a830ec36d..810ac27b230d5eb08a7ef6bd452929de41e76f5c 100644
--- a/gcc/testsuite/c-c++-common/gomp/unroll-5.c
+++ b/gcc/testsuite/c-c++-common/gomp/unroll-5.c
@@ -15,4 +15,4 @@ test1 (void)
 /* { dg-final { scan-tree-dump "#pragma omp unroll" "original" } } */
 /* { dg-final { scan-tree-dump-not "#pragma omp" "gimple" } } */
 /* { dg-final { scan-tree-dump-times "dummy" 1 "gimple" } } */
-/* { dg-final { scan-assembler-times "dummy" 8 } } */
+/* { dg-final { scan-assembler-times "dummy" 8 { xfail hppa*-*-hpux* } } } */